home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- puppetSound("volum")
- cursor(200)
- repeat while the mouseDown
- if (the mouseH < 377) and (the mouseH > 323) then
- puppetSprite(8, 1)
- set the locH of sprite 8 to the mouseH
- updateStage()
- else
- if the mouseH > 377 then
- set the locH of sprite 8 to 377
- updateStage()
- else
- if the mouseH < 323 then
- set the locH of sprite 8 to 323
- updateStage()
- end if
- end if
- end if
- set the volume of sound 1 to integer((the locH of sprite 8 - 323) * (float(256) / float(54)))
- end repeat
- end
-
- on mouseUp
- global niv_sonido1
- puppetSound(0)
- cursor(0)
- set niv_sonido1 to integer((the locH of sprite 8 - 323) * (float(256) / float(54)))
- end
-